//
//  HoraCell.m
//  Futbol5Final
//
//  Created by Ulises Ocana on 4/14/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "HoraCell.h"

@implementation HoraCell

@synthesize horaInicio,nombreCell;

-(id)initwithName:(NSString *)nombre{
    
    nombreCell = nombre;
    
    static NSString *CellIdentifier = @"horas";
    
    self = [[HoraCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
    return self;
    
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
       UIButton *boton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
        [self addSubview:boton]; 
        self.textLabel.text = nombreCell;
        
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
